json.array!(@appointments) do |appointment|
  json.extract! appointment, :id, :patient_id, :staff_id, :date, :appointment_status_id, :registration_method_id, :created_at, :updated_at, :created_by, :updated_by
  json.url appointment_url(appointment, format: :json)
end
